<script setup lang="tsx">
import { type PlusColumn, PlusDescriptions } from "plus-pro-components";
const prop = defineProps({
  info: {
    default: () => []
  }
});
//发货单列表
const columns: PlusColumn[] = [
  {
    label: "企业名称",
    prop: "name"
  },
  {
    label: "企业简称",
    prop: "shortName"
  },
  {
    label: "企业统一社会信用代码",
    prop: "socialCode"
  },
  {
    label: "组织机构代码",
    prop: "organizationCode"
  },
  {
    label: "邓白氏编码",
    prop: "dunsNumber"
  },
  {
    label: "纳税人标识",
    prop: "taxIdentifyNumber"
  },
  {
    label: "企业注册地",
    prop: "registerPlace"
  },
  {
    label: "企业注册详细地址",
    prop: "registerAddress"
  },
  {
    label: "法定代表人",
    prop: "legalPerson"
  },
  {
    label: "企业负责人",
    prop: "principal"
  },
  {
    label: "企业联系电话",
    prop: "phone"
  },
  {
    label: "注册资本",
    prop: "registeredCapital"
  },
  {
    label: "成立时间",
    prop: "foundDate"
  },
  {
    label: "营业期限",
    prop: "businessTerm"
  },
  {
    label: "经营范围",
    prop: "businessScope"
  },
  {
    label: "企业状态",
    prop: "statusFormat"
  },
  {
    label: "经营执照",
    prop: "businessLicense",
    width: 600
  },
  {
    label: "创建时间",
    prop: "createdAt"
  },
  {
    label: "修改时间",
    prop: "updatedAt"
  }
];
</script>

<template>
  <PlusDescriptions
    title="企业详情"
    :column="2"
    :columns="columns"
    :data="prop.info[0]"
  >
    <template #plus-desc-businessLicense="{ value }">
      <img :src="value" />
    </template>
  </PlusDescriptions>
</template>
<style scoped></style>
